]> dgit.raspbian.org Git - gnome-shell.git/commit
windowMenu: Do actions requiring grab once ungrabbed
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 27 May 2019 21:16:38 +0000 (16:16 -0500)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 29 May 2019 17:04:26 +0000 (12:04 -0500)
commit2b3ab3ececd2b70023547552b1acf84cbc4fecb1
treed1cbbbe0c57123785898c8f029a9e85df23ddef2
parent759120b95fd8cff4f76cceeeeadc404ae51c352d
windowMenu: Do actions requiring grab once ungrabbed

Resizing or moving a window needs starting a keyboard grab. However, if the
action is triggered by a menu entry activation it might not work as we already
have already an active grab on input devices to manage the menu itself.

So, possibly wait maximum 100ms for the current grab operation to be completed
before trying go start a new one.

Needs https://gitlab.gnome.org/GNOME/mutter/merge_requests/596
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1326

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/557
js/ui/windowMenu.js